package org.rxc.org.service.impl;

import org.rxc.base.service.impl.BaseServiceImpl;
import org.rxc.org.domain.Employee;
import org.rxc.org.mapper.EmployeeMapper;
import org.rxc.org.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements IEmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;
    @Override
    public Employee queryByUsername(String username) {
        return employeeMapper.queryByUsername(username);
    }
//    @Autowired
//    private EmployeeMapper employeeMapper;
//    @Override
//    @Transactional
//    public void save(Employee employee) {
//        employeeMapper.save(employee);
//    }
//
//    @Override
//    @Transactional
//    public void update(Employee employee) {
//        employeeMapper.update(employee);
//    }
//
//    @Override
//    @Transactional
//    public void delete(Long id) {
//        employeeMapper.delete(id);
//    }
//
//    @Override
//    public Employee queryById(Long id) {
//        return employeeMapper.queryById(id);
//    }
//
//    @Override
//    public List<Employee> queryAll() {
//        return employeeMapper.queryAll();
//    }
//
//    @Override
//    public PageList<Employee> queryPage(BaseQuery baseQuery) {
//        Long total = employeeMapper.count(baseQuery);
//        List<Employee> list = employeeMapper.queryPage(baseQuery);
//        return new PageList<Employee>(total,list);
//    }
//
//    @Override
//    public void batchRemove(List<Long> ids) {
//         employeeMapper.batchRemove(ids);
//    }
}
